package hu.monitor.remoting.client;

import java.io.Serializable;
import java.util.Arrays;

public class MarshalledInvocation implements Serializable {
	private static final long serialVersionUID = -3326041568554275687L;

	private String methodName;
	private String interfaceName;
	private String[] parameterTypeNames;
	private Object[] arguments;

	public Object[] getArguments() {
		return this.arguments;
	}

	public void setArguments(final Object[] arguments) {
		this.arguments = arguments;
	}

	public String getInterfaceName() {
		return this.interfaceName;
	}

	public void setInterfaceName(final String interfaceName) {
		this.interfaceName = interfaceName;
	}

	public String getMethodName() {
		return this.methodName;
	}

	public void setMethodName(final String methodName) {
		this.methodName = methodName;
	}

	public String[] getParameterTypeNames() {
		return this.parameterTypeNames;
	}

	public void setParameterTypeNames(final String[] parameterTypeNames) {
		this.parameterTypeNames = parameterTypeNames;
	}

	@Override
	public String toString() {
		return "Invocation [methodName=" + this.methodName + ", interfaceName=" + this.interfaceName + ", parameterTypeNames=" + Arrays.toString(this.parameterTypeNames) + ", arguments=" + Arrays.toString(this.arguments) + "]";
	}
}
